const sleep = ms => {
	return new Promise(resolve=>{
		setTimeout(resolve,ms)
	})
}

//测试
!async function (){
	console.log(new Data().toLocaleTimeString())
	await sleep(5000)
	console.log(new Data().toLocaleTimeString())
}()